<div class="site_section_header">
	Banners
</div>
<div class="site_section_subheader">
	View and manage your banners.
</div>
<div class="site_section_subheader">
	<a href="/admin/banners/add_banner"><img src="/assets/images/<?php echo $this->sPlatform; ?>/admin/apps/sm/add-banner.gif" alt="Add a banner" align="absmiddle" class="smallAdd" />Add a banner</a>
</div>

<div id="banners_main_wrapper">
<?php
for($i = 0; $i < $qBanners->num_rows(); $i++)
{
	?>
	<div class="banner_wrapper" id="banner_wrapper_<?php echo $qBanners->row($i)->banner_id; ?>">
		<?php echo $qBanners->row($i)->banner_name; ?> 
		<span style="float:right; margin:0 10px;"><a href="#" onclick="delete_banner(<?php echo $qBanners->row($i)->banner_id; ?>); return false;"><img src="/assets/images/web/admin/icons/delete.gif" title="Delete" alt="Delete" style="border:none;" /></a></span>
		<span style="float:right"><a href="/admin/banners/edit_banner/<?php echo $qBanners->row($i)->banner_id; ?>"><img src="/assets/images/web/admin/icons/edit2.gif" title="Edit" alt="Edit" style="border:none;" /></a></span>
	</div>
	<?php
}
?>
</div>